package com.young.struts.action;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import DAOIMPL.EMPimpl;
import Factory.DAOimplFactory;
import VO.EMPBEAN;

/** 
 * MyEclipse Struts
 * Creation date: 08-10-2007
 * 
 * XDoclet definition:
 * @struts.action
 */
public class SelectallAction extends Action {
	/*
	 * Generated Methods
	 */

	/** 
	 * Method execute
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 */
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		// TODO Auto-generated method stub
		EMPimpl temp=DAOimplFactory.getEMPBEANInstance();
		List<EMPBEAN> bean=temp.select();
		request.setAttribute("bean", bean);
		return mapping.findForward("selectsuccess");
	}
}